package com.four.marketing.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.four.marketing.entity.MarkChop;
import com.four.marketing.dao.MarkChopMapper;
import com.four.marketing.service.MarkChopService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.four.marketing.vo.MarkChopVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gs
 * @since 2021-12-14
 */
@Service
public class MarkChopServiceImpl extends ServiceImpl<MarkChopMapper, MarkChop> implements MarkChopService {

    @Autowired
    private MarkChopMapper markChopMapper;

    @Override
    public IPage<MarkChop> getList(Integer page, Integer size, MarkChopVo markChopVo) {

        Page<MarkChop> markChopPage = new Page<>(page, size);

        return markChopMapper.getList(markChopPage,markChopVo);
    }
}
